package com.sdleyou.treepro.common.service.impl;

import com.sdleyou.treepro.common.model.dao.BroadcastDO;
import com.sdleyou.treepro.common.service.BroadcastManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

@Service
public class BroadcastManagerImpl implements BroadcastManager {
    @Autowired
    private MongoTemplate mongoTemplate;

    @Override
    public void createBroadcast(BroadcastDO broadcastDO) {
        mongoTemplate.insert(broadcastDO);
        return;
    }
}
